﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;
using WoSoft.PACS.Data.CheckData;

namespace WoSoft.PACS.Win.Forms.TjfxForms
{
    public partial class FrmReportEditTime : WoSoft.PACS.Win.FrmBase
    {
        string appFormID = "";
        string YzdTime = "";
        public FrmReportEditTime()
        {
            InitializeComponent();
        }

        public FrmReportEditTime(string _appFormID, string _YzdTime)
        {
            InitializeComponent();
            appFormID = _appFormID;
            YzdTime = _YzdTime;
        }

        private void FrmReportEditTime_Load(object sender, EventArgs e)
        {
            dtYzdTime.Value = Convert.ToDateTime(YzdTime);
            dtXzdTime.Value = Convert.ToDateTime(YzdTime);
            this.ActiveControl = dtXzdTime;
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            CheckApp checkApp = new CheckApp();
            checkApp.Update检查执行记录_诊断时间(this.appFormID, dtXzdTime.Value.ToString());

            MessageBoxEx.Show("修改成功！", "修改", MessageBoxButtons.OK, MessageBoxIcon.Warning);
        }
    }
}
